import { defineStore } from 'pinia'
import { getAreaList } from '../api/picker'

export const usePickerStore = defineStore('picker', {
  state: () => ({
  }),
  actions: {
    getAreaList(params: any): Promise<any> {
      return new Promise((resolve, reject) => {
        getAreaList(params)
          .then((res:any) =>{
            resolve(res)
          })
          .catch(err => reject(err))
      })
    }
  },
})